import BaseComponent from "http://component.119safe.cn/component/base.js";

new class Msg_List extends BaseComponent
{
	/*
	 * when			时间
	 * read			已阅标志
	 * clicked		点击事件
	 */
	Properties = { "when": null, "read": false, "clicked": "" };

	InnerContainer = "div[content]";

	preRender() { this.Properties.read = this.Properties.read? "normal" : "bold"; }

	render() { super.render(this.constructor.name); }

	Content = `
<div class='col-xs-12' onclick="{clicked}" style="font-weight:{read}; height:35px; line-height:35px">
	<div class='col-xs-5 col-md-3'>{when}</div>
	<div class='col-xs-7 col-md-9' style="white-space:nowrap; text-overflow:ellipsis; overflow:hidden" content></div>
</div>`;
}().render();
